import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Table';
import { useI18n } from '@/hooks/web/useI18n';

const { t } = useI18n();
export const columns: BasicColumn[] = [
  {
    title: t('中文'),
    align: 'center',
    dataIndex: 'zhCn',
  },
  {
    title: t('繁体'),
    align: 'center',
    dataIndex: 'zhTw',
  },
  {
    title: t('英文'),
    align: 'center',
    dataIndex: 'enUs',
  },
  {
    title: '',
    align: 'center',
    dataIndex: 'createTime',
  },
  {
    title: '',
    align: 'center',
    dataIndex: 'updateTime',
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: '',
    component: 'Input',
    show: false,
  },
  {
    field: 'zhCn',
    label: t('中文'),
    component: 'Input',
    required: true,
  },
  {
    field: 'zhTw',
    label: t('繁体'),
    component: 'Input',
    required: true,
  },
  {
    field: 'enUs',
    label: t('英文'),
    component: 'Input',
    required: true,
  },
];
